<?php  

namespace app\Index\controller;
use think\Controller;
use think\Request;
use think\Db;
use think\Session;



class Singers extends Index
{
  public function fenlei($name)
  {
    // var_dump($name);die;
     $list = Db::name('tb_singers')->where('style',$name)->select();
     // var_dump($list);die;
     $this->assign('list',$list);
     return $this->fetch('singer/singer');
  }

  public function singer()
  {
    $this->assign('phone',Session::get('user.phone') );
  	$list = Db::name('tb_singers')->select();
  	return $this->fetch('singer/singer',[
  				'list'=>$list
  		]);
  }
}